//
//  HMProductCell.m
//  01-网易彩票
//
//  Created by SZSYKT_iOSBasic_2 on 16/2/22.
//  Copyright © 2016年 heima. All rights reserved.
//

#import "HMProductCell.h"
#import "HMProduct.h"
@interface HMProductCell()
@property (nonatomic, weak) IBOutlet UIImageView *iconView;
@property (nonatomic, weak) IBOutlet UILabel *titleLabel;
@end

@implementation HMProductCell

//- (instancetype)initWithCoder:(NSCoder *)aDecoder {
//    if (self = [super initWithCoder:aDecoder]) {
//        
//    }
//    return self;
//}
- (void)awakeFromNib {
    self.iconView.layer.cornerRadius = 8;
    self.iconView.layer.masksToBounds = YES;
}

- (void)setProduct:(HMProduct *)product {
    _product = product;
    self.iconView.image = [UIImage imageNamed:product.icon];
    self.titleLabel.text = product.title;
}
@end
